package com.lemon.exam.controller;

import com.lemon.exam.common.annotation.Web;
import com.lemon.exam.common.crud.BaseController;
import com.lemon.exam.common.entity.vo.SelectVO;
import com.lemon.exam.entity.po.ClassPO;
import com.lemon.exam.service.IClassService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Flux;

/**
 * 班级表 控制器
 *
 * @author Lemon
 * @since 2025/04/20 22:06:24
 */
@RestController
@RequestMapping("class")
@Tag(name = "班级表管理", description = "班级表 API")
@Web(childUri = "class", childComponent = "system/Class.vue")
public class ClassController extends BaseController<ClassPO, Long, IClassService> {
    /**
     * 当点击详情，编辑，修改时，查询
     *
     * @return
     */
    @GetMapping("findGradeSelect")
    @Operation(summary = "查询年级选择信息")
    public Flux<SelectVO> findGradeSelect() {
        return service.findGradeSelect();
    }
}
